package mju.cxf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import mju.cxf.dto.ProductDTO;
import mju.cxf.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    Page<ProductDTO> selectPageVo(com.baomidou.mybatisplus.extension.plugins.pagination.Page<ProductDTO> page, String name, Integer state);

    Product selectProductName(int id);

    List<Product> selectByCategoriesId(int id);
}
